package com.wwy.user.converter;

import com.wwy.user.module.entity.User;
import com.wwy.user.module.vo.user.UserSaveVo;
import com.wwy.user.module.vo.user.UserUpdateVo;
import com.wwy.user.module.vo.user.UserVo;
import com.wwy.user.utils.MyMapStructMapper;
import org.mapstruct.Mapper;

import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * User类型转换器
 *
 * @author wwy
 *
 */
@Mapper
public interface UserConverter {
    UserConverter INSTANCE = Mappers.getMapper(UserConverter.class);
	UserVo toUserVo(User user);

	User toUser(UserVo vo);

    User toUser(UserSaveVo saveVo);

    User toUser(UserUpdateVo updateVo);

    List<UserVo> toUserVo(List<User> list);
}
